#include "StdAfx.h"
#include "synfigfile.h"

SynfigFile::SynfigFile(QObject *parent)
	: QObject(parent)
{

}

SynfigFile::~SynfigFile()
{

}


SynfigFile::SynfigFile(int TYPE, QString path)
{
}
SynfigFile::SynfigFile(int TYPE, QString path, int duration)
{
	if(TYPE==BACKGROUND)
	{
		//CreateSynfig(Path::Combine(path,"background_1.sif"));
	}
	if(TYPE==FIGURES)
	{
		//CreateSynfig(Path::Combine(path,"figures_1.sif"));
	}
	else if(TYPE==RENDER)
	{
		//CreateSynfig(Path::Combine(path,"render_1.sif"));
	}
}
//SynfigFile::~SynfigFile(void)
//{
//}

//																										creates synfig file
void SynfigFile::CreateSynfig(QString  fileName) 
{
	/*StreamWriter^ newFile=gcnew StreamWriter(fileName);
	newFile->WriteLine("<?xml version=\"1.0\"?>");
	newFile->WriteLine("<canvas version=\"0.7\" width=\"720\" height=\"576\" "
		"xres=\"2834.645752\" yres=\"2834.645752\" "
		"view-box=\"-6.000000 4.800000 6.000000 -4.800000\" antialias=\"1\" "
		"fps=\"24.000\" begin-time=\"0f\" end-time=\"5s\" bgcolor=\"0.500000 0.500000 0.500000 1.000000\">");
	newFile->WriteLine("<name>name</name>");
	newFile->WriteLine("<desc>Description</desc>");
	newFile->WriteLine("</canvas>");
	newFile->Close();*/
}